package top.likeqc.blog.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import top.likeqc.blog.pojo.Blog;
import top.likeqc.blog.vo.BlogQuery;

/**
 * @author likeqc.top
 * @date 2021/4/17 13:19
 */
public interface BlogService {

    Blog getBlog(Long id);

    Page<Blog> listBlog(Pageable pageable, BlogQuery blog);

    Blog saveBlog(Blog blog);

    Blog updateBlog(Long id, Blog blog);

    void deleteBlog(Long id);
}
